/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package listassimples;

/**
 *
 * @author cbba1
 */
import astros.*;
public class Lista {


    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        // TODO code application logic here
      Astro sol = new Astro("Sol", "Sol", 125682.25, 965847.45);
      Astro luna = new Astro("Satelite","Luna",125984.15, 589687.14 );
      Astro lunita = new Astro("Satelite", "Lunita",145896.15, 14587.45);
      NodoSimple nodo1 = new NodoSimple(sol, null);
       NodoSimple nodo2 = new NodoSimple(luna, null);
       NodoSimple nodo3 = new NodoSimple(lunita, null);
       ListaSimple lista1;
       lista1=new ListaSimple(nodo1);
       lista1.InsertarFinal(nodo2);
       lista1.InsertarFinal(nodo3);
       System.out.print(lista1.ImprimirValores());
        /*NodoSimple val2=new NodoSimple(2,null);
        NodoSimple val3=new NodoSimple(5,null);
        lista1.InsertarFinal(val2);
        lista1.InsertarFinal(val3);
        System.out.print(lista1.ImprimirValores());*/

    }

}
